﻿@model PinLayoutMVC.Models.AnswerModel

@{
    ViewBag.Title = "Answer";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="headerTitle">
    <div class="pageTitle" > Answer Details</div>

    <div class="eigenlink">
       @Html.ActionLink("Add answer", "CreateNewAnswer", "Admin", new { Model.ID }, null)
       @Html.ActionLink("Back", "Question", "Admin", new { Model.QuestionID }, null)
    </div>

</div>


<!DOCTYPE html>

<html>
<head>
    <title>Answer Details</title>
</head>
<body>    
<div class="threePixelLine">
      <img src="../../images/lijnTabel.jpg" />
    </div>
    <div class="TabelSizzle">

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend id="eigenTitle">Answer: @Model.Number  </legend>

        @Html.HiddenFor(model => model.ID) 
        @Html.HiddenFor(model => model.QuestionID) 

        <div class="editor-label">
            @Html.EditorFor(model => model.Number) Nummer
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.Text) Text
        </div>
        
        <div class="editor-label">
            @Html.EditorFor(model => model.LeadsToQuestion) Leads to question
        </div>
    </fieldset>
    
    <input type="submit" id="submitAnswer" value="Submit"  />
}
    </div>
</body>
</html>
